package com.ruoyi.system.domain;

import java.util.Date;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电站列对象 station_power
 * 
 * @author ruoyi
 * @date 2024-08-24
 */
public class StationPower extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 组串总容量 */
    @Excel(name = "组串总容量")
    private Long capacity;

    /** 电站联系人联系方式，手机或邮箱 */
    @Excel(name = "电站联系人联系方式，手机或邮箱")
    private String contactMethod;

    /** 电站联系人 */
    @Excel(name = "电站联系人")
    private String contactPerson;

    /** 电站的并网时间，包含时区 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "电站的并网时间，包含时区", width = 30, dateFormat = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd'T'HH:mm:ssXXX")
    private Date gridConnectionDate;

    /** 电站纬度 */
    @Excel(name = "电站纬度")
    private String latitude;

    /** 电站经度 */
    @Excel(name = "电站经度")
    private String longitude;

    /** 电站详细地址 */
    @Excel(name = "电站详细地址")
    private String plantAddress;

    /** 电站编号，系统中电站唯一标识 */
    @Excel(name = "电站编号，系统中电站唯一标识")
    private String plantCode;

    /** 电站名称 */
    @Excel(name = "电站名称")
    private String plantName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCapacity(Long capacity) 
    {
        this.capacity = capacity;
    }

    public Long getCapacity() 
    {
        return capacity;
    }
    public void setContactMethod(String contactMethod) 
    {
        this.contactMethod = contactMethod;
    }

    public String getContactMethod() 
    {
        return contactMethod;
    }
    public void setContactPerson(String contactPerson) 
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() 
    {
        return contactPerson;
    }
    public void setGridConnectionDate(Date gridConnectionDate) 
    {
        this.gridConnectionDate = gridConnectionDate;
    }

    public Date getGridConnectionDate() 
    {
        return gridConnectionDate;
    }
    public void setLatitude(String latitude) 
    {
        this.latitude = latitude;
    }

    public String getLatitude() 
    {
        return latitude;
    }
    public void setLongitude(String longitude) 
    {
        this.longitude = longitude;
    }

    public String getLongitude() 
    {
        return longitude;
    }
    public void setPlantAddress(String plantAddress) 
    {
        this.plantAddress = plantAddress;
    }

    public String getPlantAddress() 
    {
        return plantAddress;
    }
    public void setPlantCode(String plantCode) 
    {
        this.plantCode = plantCode;
    }

    public String getPlantCode() 
    {
        return plantCode;
    }
    public void setPlantName(String plantName) 
    {
        this.plantName = plantName;
    }

    public String getPlantName() 
    {
        return plantName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("capacity", getCapacity())
            .append("contactMethod", getContactMethod())
            .append("contactPerson", getContactPerson())
            .append("gridConnectionDate", getGridConnectionDate())
            .append("latitude", getLatitude())
            .append("longitude", getLongitude())
            .append("plantAddress", getPlantAddress())
            .append("plantCode", getPlantCode())
            .append("plantName", getPlantName())
            .toString();
    }
}
